import Layout from './layout';
import Login from './views/login/index';
import { useSelector } from "react-redux"
function App() {
  let token = useSelector((state)=>{
      return state.userReducerce.token
  })
  return (
    < >
    { token?<Layout></Layout>: <Login></Login>}
    </>
  );
}

export default App;
